<?php

function register_custom_statuses()
{
	register_post_status('ongoing',
			array(
					'label'       => _x( 'In corso', 'post' ),
					'public'      => true,
					'_builtin'    => true, /* internal use only. */
					'label_count' => _n_noop( 'In corso <span class="count">(%s)</span>', 'In corso <span class="count">(%s)</span>' ),
	                'show_in_admin_all_list' => true,
	                'exclude_from_search' => true,
	                'show_in_admin_status_list' => true
			)
	);
	
	register_post_status( 'locked', array(
		'label'       => _x( 'Bloccato', 'post' ),
		'public'      => true,
		'_builtin'    => true, /* internal use only. */
		'label_count' => _n_noop( 'Bloccati <span class="count">(%s)</span>', 'Bloccati <span class="count">(%s)</span>' ),
                'show_in_admin_all_list' => true,
                'exclude_from_search' => true,
                'show_in_admin_status_list' => true
	));
	
	register_post_status( 'approved', array(
				'label'       => _x( 'Approvato', 'post' ),
				'public'      => true,
				'_builtin'    => false,
				'label_count' => _n_noop( 'Approvati <span class="count">(%s)</span>', 'Approvati <span class="count">(%s)</span>' ),
				'show_in_admin_all_list' => true,
				'exclude_from_search' => true,
				'show_in_admin_status_list' => true
		) );

		register_post_status( 'closed', array(
				'label'       => _x( 'Chiuso', 'post' ),
				'public'      => true,
				'_builtin'    => false,
				'label_count' => _n_noop( 'Chiusi <span class="count">(%s)</span>', 'Chiusi <span class="count">(%s)</span>' ),
				'show_in_admin_all_list' => true,
				'exclude_from_search' => true,
				'show_in_admin_status_list' => true
		) );
	
}

?>
